]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Fix alignment of world clocks header in RTL
authorYosef Or Boczko <yoseforb@gmail.com>
Fri, 11 Mar 2022 10:10:24 +0000 (12:10 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Mar 2022 16:39:13 +0000 (18:39 +0200)
Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2240>

js/ui/dateMenu.js

index ca98cdd248b1e27bcc929e5628c4e847d30c78d7..bd363f3232d3851d8bb9ce907620d77f66ed974e 100644 (file)
@@ -400,7 +400,10 @@ class WorldClocksSection extends St.Button {
             x_align: Clutter.ActorAlign.START,
             text: title,
         });
-        layout.attach(header, 0, 0, 2, 1);
+        if (this._grid.text_direction === Clutter.TextDirection.RTL)
+            layout.attach(header, 2, 0, 1, 1);
+        else
+            layout.attach(header, 0, 0, 2, 1);
         this.label_actor = header;
 
         for (let i = 0; i < this._locations.length; i++) {